package com.dgut.demo.bean;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

/**
 * @Auther 虎
 * @Data 2021/2/4 21:56
 * @Version 1.0
 */
@Getter
@Setter
public class EmployeesMessage {
    private String eid;
    private String ename;
    private String ephone;
    private String edepartment;
    private Double esalary;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ehiredate;

    @Override
    public String toString() {
        return "{" +
                "eid='" + eid + '\'' +
                ", ename='" + ename + '\'' +
                ", ephone='" + ephone + '\'' +
                ", edepartment='" + edepartment + '\'' +
                ", esalary=" + esalary +
                ", ehiredate=" + ehiredate +
                '}';
    }
}
